package com.woniuxy.exam.service.impl;

import com.woniuxy.commons.dto.QuestionDto;
import com.woniuxy.commons.entity.MultipleChoice;
import com.woniuxy.exam.mapper.MultipleChoiceMapper;
import com.woniuxy.exam.service.MultipleChoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zouyang
 * @date 2020/7/17 - 23:17
 */
@Service
public class MultipleChoiceServiceImpl implements MultipleChoiceService {

    @Autowired
    private MultipleChoiceMapper multipleChoiceMapper;


    @Override
    public List<MultipleChoice> selectAll() {
        return multipleChoiceMapper.selectAll();
    }

    @Override
    public int insertList(List<MultipleChoice> list) {
        return multipleChoiceMapper.insertList(list);
    }

    @Override
    public List<MultipleChoice> selectByAll(MultipleChoice multipleChoice) {
        return multipleChoiceMapper.selectByAll(multipleChoice);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return multipleChoiceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MultipleChoice record) {
        return multipleChoiceMapper.insert(record);
    }

    @Override
    public int insertSelective(MultipleChoice record) {
        return multipleChoiceMapper.insertSelective(record);
    }

    @Override
    public MultipleChoice selectByPrimaryKey(Integer id) {
        return multipleChoiceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MultipleChoice record) {
        return multipleChoiceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MultipleChoice record) {
        return multipleChoiceMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Integer> selectIdByBankId(Integer bankId) {
        return multipleChoiceMapper.selectIdByBankId(bankId);
    }

}

